﻿using KinonekoSoftware.Extensions.Strings.SearchModels;

namespace KinonekoSoftware.ArkSpark.Core
{
    public interface IHighlightToken
    {
        public string CreateString(string input) => Segment.CreateString(input);

        /// <summary>
        /// 与当前<see cref="IHighlightToken"/> 关联的数据的唯一标识符(ID)
        /// </summary>

        string Id { get; init; }

        /// <summary>
        /// 
        /// </summary>
        string Name { get; init; }

        /// <summary>
        /// 
        /// </summary>
        string Intro { get; set; }

        /// <summary>
        /// 
        /// </summary>
        string EngineID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        MatchResult Segment { get; init; }
    }
}